public class Main {
    public static void main(String[] args) {
        String s = "aaabb";
        Solution solution = new Solution();
        System.out.println(solution.longestSubstring(s, 3));
    }
}
